﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cmsservice.Entity
{
    public class EMStockAnnounceModel
    {
        #region Model
        private string _textid;
        private string _author;
        private string _publishorg;
        private string _initialmedia;
        private DateTime _publdate;
        private string _title;
        private string _keywords;
        private string _textcontent;
        private string _textabstract;
        private decimal _textsize;
        private string _textcomment;
        private string _industrycode;
        private string _industryname;
        private string _person;
        private string _recommendid;
        private string _memo;
        private DateTime _rectime;
        private DateTime _modtime;
        private string _isvalid;
        private string _recordid;
        private string _categoryname2;
        private string _categoryname3;
        private string _categoryname4;

        /// <summary>
        /// 二级分类
        /// </summary>
        public string CategoryName2
        {
            get { return _categoryname2; }
            set { _categoryname2 = value; }
        }
        /// <summary>
        /// 三级分类
        /// </summary>
        public string CategoryName3
        {
            get { return _categoryname3; }
            set { _categoryname3 = value; }
        }
        /// <summary>
        /// 四级分类
        /// </summary>
        public string CategoryName4
        {
            get { return _categoryname4; }
            set { _categoryname4 = value; }
        }
        /// <summary>
        /// 正文ID
        /// </summary>
        public string TextID
        {
            set { _textid = value; }
            get { return _textid; }
        }
        /// <summary>
        /// 文章作者
        /// </summary>
        public string Author
        {
            set { _author = value; }
            get { return _author; }
        }
        /// <summary>
        /// 发表机构
        /// </summary>
        public string PublishOrg
        {
            set { _publishorg = value; }
            get { return _publishorg; }
        }
        /// <summary>
        /// 首发媒体
        /// </summary>
        public string InitialMedia
        {
            set { _initialmedia = value; }
            get { return _initialmedia; }
        }
        /// <summary>
        /// 发表时间
        /// </summary>
        public string PublDate
        {
            set
            {
                if (!string.IsNullOrEmpty(value))
                {
                    _publdate = Convert.ToDateTime(value);
                }
            }
            get
            {
                if (_publdate == null || _publdate == new DateTime() || _publdate == DateTime.MinValue)
                {
                    return string.Empty;
                }
                else
                {
                    return _publdate.ToString("yyyy-MM-dd HH:mm:ss");
                }
            }
        }
        /// <summary>
        /// 文章标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 关键词
        /// </summary>
        public string KeyWords
        {
            set { _keywords = value; }
            get { return _keywords; }
        }
        /// <summary>
        /// 文章内容
        /// </summary>
        public string TextContent
        {
            set { _textcontent = value; }
            get { return _textcontent; }
        }
        /// <summary>
        /// 文章摘要
        /// </summary>
        public string TextAbstract
        {
            set { _textabstract = value; }
            get { return _textabstract; }
        }
        /// <summary>
        /// 文本大小
        /// </summary>
        public decimal TextSize
        {
            set { _textsize = value; }
            get { return _textsize; }
        }
        /// <summary>
        /// 文章点评
        /// </summary>
        public string TextComment
        {
            set { _textcomment = value; }
            get { return _textcomment; }
        }
        /// <summary>
        /// 相关行业编码
        /// </summary>
        public string IndustryCode
        {
            set { _industrycode = value; }
            get { return _industrycode; }
        }
        /// <summary>
        /// 相关行业
        /// </summary>
        public string IndustryName
        {
            set { _industryname = value; }
            get { return _industryname; }
        }
        /// <summary>
        /// 关联人物
        /// </summary>
        public string Person
        {
            set { _person = value; }
            get { return _person; }
        }
        /// <summary>
        /// 推荐标志
        /// </summary>
        public string RecommendID
        {
            set { _recommendid = value; }
            get { return _recommendid; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Memo
        {
            set { _memo = value; }
            get { return _memo; }
        }
        /// <summary>
        /// 录入时间
        /// </summary>
        public string RecTime
        {
            set
            {
                if (!string.IsNullOrEmpty(value))
                {
                    _rectime = Convert.ToDateTime(value);
                }
            }
            get
            {
                if (_rectime == null || _rectime == new DateTime() || _rectime == DateTime.MinValue)
                {
                    return string.Empty;
                }
                else
                {
                    return _rectime.ToString("yyyy-MM-dd HH:mm:ss");
                }
            }
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public string ModTime
        {
            set
            {
                if (!string.IsNullOrEmpty(value))
                {
                    _modtime = Convert.ToDateTime(value);
                }
            }
            get
            {
                if (_modtime == null || _modtime == new DateTime() || _modtime == DateTime.MinValue)
                {
                    return string.Empty;
                }
                else
                {
                    return _modtime.ToString("yyyy-MM-dd HH:mm:ss");
                }
            }
        }
        /// <summary>
        /// 是否有效
        /// </summary>
        public string IsValid
        {
            set { _isvalid = value; }
            get { return _isvalid; }
        }
        /// <summary>
        /// 记录ID
        /// </summary>
        public string RecordID
        {
            set { _recordid = value; }
            get { return _recordid; }
        }
        #endregion Model
    }
}
